package com.last1mile.service;

import java.util.Date;
import java.util.List;

import org.springframework.stereotype.Service;

import com.last1mile.commons.ReserveStatusEnum;
import com.last1mile.model.Reserve;
import com.last1mile.pojo.ServeReserveDO;

@Service
public interface ReserveService {
    
    public Integer createReserve(Reserve reserve);
    
    public Integer updateReserveBeginEndTime(Integer reserveId,Date beginTime,Date endTime,Boolean allDay);
    
    public List<ServeReserveDO> queryServeReserve(Integer serveId, Date startDate, Date finishDate);
    
    public List<ServeReserveDO> queryMerReserve(Integer merId, Integer serveId, Date startDate, Date finishDate);
    
    public List<ServeReserveDO> queryPerReserve(Integer serveId,  Integer perId, Date startDate, Date finishDate);
    
    public ServeReserveDO queryReserveById(Integer id);
    
    public Integer countServeReserve(Integer serveId);
    
    public void updateReserveStatus(Integer id,ReserveStatusEnum reserveStatusEnum);
    
}
